package io.renren.modules.contract.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.contract.dao.ContractTypeDao;
import io.renren.modules.contract.entity.ContractTypeEntity;
import io.renren.modules.contract.service.ContractTypeService;



@Service("contractTypeService")
public class ContractTypeServiceImpl implements ContractTypeService {
	@Autowired
	private ContractTypeDao contractTypeDao;
	
	@Override
	public ContractTypeEntity queryObject(String id){
		return contractTypeDao.queryObject(id);
	}
	
	@Override
	public List<ContractTypeEntity> queryList(Map<String, Object> map){
		return contractTypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return contractTypeDao.queryTotal(map);
	}
	
	@Override
	public void save(ContractTypeEntity contractType){
		contractTypeDao.save(contractType);
	}
	
	@Override
	public void update(ContractTypeEntity contractType){
		contractTypeDao.update(contractType);
	}
	
	@Override
	public void delete(String id){
		contractTypeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		contractTypeDao.deleteBatch(ids);
	}
	
}
